//头部样式开始
#head {
    background: #fff !important;

    .headMain {
        position: relative;
        width: 1100px;
        height: 80px;
        margin: 0 auto;

        >.logo {
            float: left;
            margin-top: 30px;
        }

        >.nav {
            float: right;
            margin-top: 50px;

            >.list {
                >li {
                    float: left;
                    margin-left: 40px;
                    position: relative;

                    .up {
                        position: absolute;
                        color: #000;
                        width: 0;
                        overflow: hidden;
                        transition: width .5s;
                    }

                    .down {
                        color: rgb(0, 158, 224);
                    }

                    &:hover .up {
                        width: 100%;
                    }
                }
            }
        }

        >.arrow {
            position: absolute;
            left: 50%;
            bottom: -11px;
            width: 21px;
            height: 11px;
            background: url(../img/menuIndicator.png);
            transition: 1s left;
            z-index: 2;
        }

        .music {
            float: left;
            width: 14px;
            height: 14px;
            margin: 50px 0 0 5px;
            background: url(../img/musicon.gif);
            cursor: pointer;
        }
    }
}

//头部样式结束

//内容区样式开始
#content {
    position: relative;
    background: gray;
    overflow: hidden;
    width: 100%;

    li {
        position: relative;
        background-position: center;
        overflow: hidden;

        section {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            margin: auto;
            width: 1100px;
            height: 520px;
        }
    }

    >.list {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        transition: 1s top;

        // 第一屏
        >.home {
            background: url(../img/bg1.jpg) no-repeat center;

            section {

                .home1 {
                    width: 100%;
                    height: 100%;
                    perspective: 500px;
                    transform-style: preserve-3d;
                    transition: 1s;

                    >li {
                        position: absolute;
                        top: 0;
                        bottom: 0;
                        left: 0;
                        right: 0;
                        visibility: hidden;

                        &.active {
                            visibility: visible;
                        }

                        &.leftHide {
                            visibility: hidden;
                            animation: 1s leftHide 1 linear;
                        }

                        &.rightShow {
                            visibility: visible;
                            animation: 1s rightShow 1 linear;
                        }

                        &.leftShow {
                            visibility: visible;
                            animation: 1s leftShow 1 linear;
                        }

                        &.rightHide {
                            visibility: hidden;
                            animation: 1s rightHide 1 linear;
                        }

                        >div {
                            color: #fff;
                            text-align: center;
                            margin-top: 200px;
                        }

                        &:nth-child(1) {
                            background: #dc6c5f;
                        }

                        &:nth-child(2) {
                            background: #95dc84;
                        }

                        &:nth-child(3) {
                            background: #64b9d2;
                        }

                        &:nth-child(4) {
                            background: #000000;
                            ;
                        }
                    }
                }

                .home2 {
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    text-align: center;
                    transition: 1s;

                    li {
                        display: inline-block;
                        border-radius: 50%;
                        width: 20px;
                        height: 20px;
                        margin: 2px;
                        background: rgba(255, 255, 255, 0.5);
                        box-shadow: 0 0 4px rgba(25, 25, 25, 0.8);
                        cursor: pointer;

                        &.active {
                            background: #fff;
                            cursor: default;
                        }
                    }
                }
            }
        }

        // 第二屏
        >.course {
            position: relative;
            background: url(../img/bg2.jpg) no-repeat center;

            .course1 {
                position: relative;
                margin: 50px;
                z-index: 1;
            }

            .course2 {
                position: relative;
                margin-left: 50px;
                width: 400px;
                z-index: 1;
            }

            .course3 {
                position: absolute;
                right: 50px;
                top: 70px;
                width: 480px;
                z-index: 1;

                .item {
                    position: relative;
                    float: left;
                    width: 120px;
                    height: 132px;
                    perspective: 500px;
                    transform-style: preserve-3d;

                    &:hover .front {
                        transform: rotateY(360deg);
                    }

                    &:hover .back {
                        transform: rotateY(180deg);
                    }

                    .front,
                    .back {
                        position: absolute;
                        box-sizing: border-box;
                        left: 0;
                        top: 0;
                        padding: 15px;
                        width: 100%;
                        height: 100%;
                        transition: 1s;
                    }

                    .front {
                        transform: rotateY(180deg);
                        backface-visibility: hidden;
                        background: #009ee0;
                        color: #fff;
                    }

                    .back {
                        background-position: 50% 50% !important;
                        backface-visibility: hidden;
                    }


                    &:nth-of-type(1) .back {
                        background: url(../img/bks.png) no-repeat;
                    }

                    &:nth-of-type(2) .back {
                        background: url(../img/apcoa.png) no-repeat;
                    }

                    &:nth-of-type(3) .back {
                        background: url(../img/binoli.png) no-repeat;
                    }

                    &:nth-of-type(4) .back {
                        background: url(../img/gu.png) no-repeat;
                    }

                    &:nth-of-type(5) .back {
                        background: url(../img/hlx.png) no-repeat;
                    }

                    &:nth-of-type(6) .back {
                        background: url(../img/lbs.png) no-repeat;
                    }

                    &:nth-of-type(7) .back {
                        background: url(../img/leonberg.png) no-repeat;
                    }

                    &:nth-of-type(8) .back {
                        background: url(../img/tata.png) no-repeat;
                    }

                    &:nth-of-type(9) .back {
                        background: url(../img/bks.png) no-repeat;
                    }

                    &:nth-of-type(10) .back {
                        background: url(../img/bks.png) no-repeat;
                    }

                    &:nth-of-type(11) .back {
                        background: url(../img/bks.png) no-repeat;
                    }

                    &:nth-of-type(12) .back {
                        background: url(../img/bks.png) no-repeat;
                    }
                }

                .line {
                    position: absolute;
                    top: -px;
                    width: 9px;
                    height: 410px;
                    background: url(../img/plus_row.png) no-repeat;

                    &:nth-of-type(1) {
                        left: -5px;
                    }

                    &:nth-of-type(2) {
                        left: 115px;
                    }

                    &:nth-of-type(3) {
                        left: 235px;
                    }

                    &:nth-of-type(4) {
                        left: 355px;
                    }

                    &:nth-of-type(5) {
                        left: 475px;
                    }
                }
            }

            .plane1 {
                width: 359px;
                height: 283px;
                background: url(../img/plane1.png) no-repeat;
                position: absolute;
                left: 300px;
                top: -100px;
                transition: 1s;
            }

            .plane2 {
                width: 309px;
                height: 249px;
                background: url(../img/plane2.png) no-repeat;
                position: absolute;
                left: -100px;
                top: 200px;
                transition: 1s;
            }

            .plane3 {
                width: 230px;
                height: 182px;
                background: url(../img/plane3.png) no-repeat;
                position: absolute;
                left: 300px;
                top: 400px;
                transition: 1s;
            }
        }

        //第三屏
        >.works {
            background: url(../img/bg4.jpg) no-repeat center;

            .works1 {
                position: relative;
                margin: 50px 0 100px 50px;
                z-index: 1;
            }

            .works2 {
                position: relative;
                margin-left: 50px;
                z-index: 1;

                .item {
                    position: relative;
                    float: left;
                    width: 220px;
                    height: 133px;
                    margin: 0 1px;
                    overflow: hidden;

                    &:hover>.mask {
                        opacity: 0.8;
                    }

                    &:hover img {
                        transform: rotate(30deg) scale(1.5);
                    }

                    &:last-child {
                        width: 332px;
                    }

                    >.mask {
                        position: absolute;
                        left: 0;
                        right: 0;
                        top: 0;
                        bottom: 0;
                        box-sizing: border-box;
                        padding: 10px;
                        color: #fff;
                        background-color: #000;
                        opacity: 0;
                        transition: .5s opacity;

                        .icon {
                            width: 32px;
                            height: 34px;
                            margin: 10px auto;
                            background: url(../img/zoomico.png) no-repeat;
                            transition: .5s;

                            &:hover {
                                background-position: 0 -35px;
                            }
                        }
                    }

                    img {
                        transition: 0.5s;
                    }
                }
            }

            .works3 {
                position: absolute;
                left: 900px;
                top: 170px;
                width: 167px;
                height: 191px;
                background: url(../img/robot.png) no-repeat;
                animation: works3Move 5s linear infinite;
                z-index: 1;
            }

            .pencel1 {
                width: 180px;
                height: 97px;
                background: url(../img/pencel1.png) no-repeat;
                position: absolute;
                transition: 1s;
                left: 500px;
                top: 0;
            }

            .pencel2 {
                width: 268px;
                height: 38px;
                background: url(../img/pencel2.png) no-repeat;
                position: absolute;
                transition: 1s;
                left: 300px;
                top: 250px;
            }

            .pencel3 {
                width: 441px;
                height: 231px;
                background: url(../img/pencel3.png) no-repeat;
                position: absolute;
                transition: 1s;
                left: 650px;
                top: 300px;
            }
        }

        //第四屏
        >.about {
            background: url(../img/bg3.jpg) no-repeat center;
            // overflow: hidden;

            .about1 {
                margin: 50px 0 100px 50px;
            }

            .about2 {
                width: 400px;
                margin-left: 50px;
            }

            .about3 {

                >.item {
                    width: 260px;
                    height: 200px;
                    border: 5px solid rgba(255, 255, 255, 0.5);
                    border-radius: 8px;
                    position: absolute;
                    z-index: 2;
                    overflow: hidden;
                    transition: 1s transform;

                    &:nth-child(1) {
                        left: 750px;
                        top: 50px
                    }

                    &:nth-child(1)>span {
                        background: url(../img/about2.jpg) no-repeat;
                        transform: scale(1.5);
                        transition: 1s;
                    }

                    &:nth-child(2) {
                        left: 600px;
                        top: 290px
                    }

                    &:nth-child(2)>span {
                        background: url(../img/about4.jpg) no-repeat;
                        transform: scale(1.5);
                        transition: 1s;
                    }

                    &:hover span {
                        transform: scale(1);
                    }

                    >span,
                    ul {
                        position: absolute;
                        left: 0;
                        top: 0;
                        bottom: 0;
                        right: 0;
                    }

                    ul {
                        li {
                            float: left;
                            position: relative;
                            overflow: hidden;

                            img {
                                position: absolute;
                                transition: 1s;
                            }
                        }
                    }
                }


            }

            .line {
                position: absolute;
                left: 50%;
                top: -100px;
                width: 357px;
                height: 998px;
                background: url(../img/greenLine.png)no-repeat;
            }
        }

        //第五屏
        >.team {
            background: url(../img/bg5.jpg) no-repeat center;

            .team1 {
                float: left;
                margin: 50px;
                width: 400px;
                transition: 1s;
            }

            .team2 {
                float: right;
                margin: 50px;
                width: 400px;
                transition: 1s;
            }


            ul {
                position: absolute;
                left: 50%;
                top: 250px;
                margin-left: -472px;
                width: 944px;
                height: 448px;

                li {
                    float: left;
                    width: 118px;
                    height: 100%;
                    background: url(../img/team.png) no-repeat;
                    transition: 1s;

                    &:nth-child(1) {
                        background-position: 0 0;
                    }

                    &:nth-child(2) {
                        background-position: -118px 0;
                    }

                    &:nth-child(3) {
                        background-position: -236px 0;
                    }

                    &:nth-child(4) {
                        background-position: -354px 0;
                    }

                    &:nth-child(5) {
                        background-position: -472px 0;
                    }

                    &:nth-child(6) {
                        background-position: -590px 0;
                    }

                    &:nth-child(7) {
                        background-position: -708px 0;
                    }

                    &:nth-child(8) {
                        background-position: -826px 0;
                    }
                }
            }

        }


    }

    >.dot {
        position: fixed;
        right: 10px;
        top: 50%;

        li {
            margin-top: 10px;
            width: 10px;
            height: 10px;
            border: 2px #fff solid;
            border-radius: 50%;
            cursor: pointer;

            &.active {
                background: #fff;
                cursor: default;
            }
        }
    }
}

//内容区样式结束

//动画
@keyframes works3Move {
    0% {
        transform: translateX(0px) rotateY(0deg);
    }

    49% {
        transform: translateX(-490px) rotateY(0deg);
    }

    50% {
        transform: translateX(-500px) rotateY(180deg);
    }

    100% {
        transform: translateX(0px) rotateY(180deg);
    }
}

//从左往右
@keyframes leftHide {
    0% {
        visibility: visible;
    }

    50% {
        transform: translateX(-50%) rotateY(30deg) scale(.8);
    }

    100% {
        transform: translateZ(-200px);
    }
}

@keyframes rightShow {
    0% {
        visibility: hidden;
        transform: translateZ(-200px);
    }

    50% {
        transform: translateX(50%) rotateY(-30deg) scale(.8);
    }

    100% {
        visibility: visible;
    }
}

//从右往左
@keyframes leftShow {
    0% {
        visibility: hidden;
        transform: translateZ(-200px);
    }

    50% {
        transform: translateX(-50%) rotateY(30deg) scale(.8);
    }

    100% {
        visibility: visible;
    }
}

@keyframes rightHide {
    0% {
        visibility: visible;
    }

    50% {
        transform: translateX(50%) rotateY(-30deg) scale(.8);
    }

    100% {
        transform: translateZ(-200px);
    }
}